package com.ysh.spring.pojo;


import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Created by Jackiechan on 2022/8/26 10:27
 *
 * @author Jackiechan
 * @version 1.0
 * @since 1.0
 */
@Component//:把pojo实例化到spring容器中
public class TestClass {
    @PostConstruct
    public void init() {
        System.err.println("开始初始化我们的数据");
    }
}
